.class public Les/d70;
.super Les/s80;
.source "ESDownloadTask.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/d70$b;
    }
.end annotation


# instance fields
.field protected D:Lcom/estrongs/fs/f;

.field protected E:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/q60;",
            ">;"
        }
    .end annotation
.end field

.field F:Z

.field G:Les/d70$b;

.field private H:Ljava/lang/String;

.field private I:Ljava/lang/String;

.field private J:Z

.field private K:Z

.field private L:Ljava/lang/String;

.field private M:Ljava/lang/String;

.field public N:Ljava/lang/String;

.field public O:Z

.field public P:Z

.field private Q:Ljava/lang/String;

.field R:Ljava/lang/Long;

.field S:Ljava/lang/Long;


# direct methods
.method public constructor <init>(Lcom/estrongs/fs/f;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    const/4 v0, 0x1

    .line 1
    invoke-direct {p0, p1, p2, p3, v0}, Les/d70;-><init>(Lcom/estrongs/fs/f;Ljava/lang/String;Ljava/lang/String;Z)V

    return-void
.end method

.method public constructor <init>(Lcom/estrongs/fs/f;Ljava/lang/String;Ljava/lang/String;Z)V
    .locals 6

    const/4 v4, 0x1

    const/4 v5, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    .line 2
    invoke-direct/range {v0 .. v5}, Les/d70;-><init>(Lcom/estrongs/fs/f;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V

    return-void
.end method

.method public constructor <init>(Lcom/estrongs/fs/f;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V
    .locals 3

    .line 3
    invoke-direct {p0}, Les/s80;-><init>()V

    const/4 v0, 0x0

    .line 4
    iput-object v0, p0, Les/d70;->D:Lcom/estrongs/fs/f;

    .line 5
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Les/d70;->E:Ljava/util/List;

    const/4 v1, 0x0

    .line 6
    iput-boolean v1, p0, Les/d70;->F:Z

    .line 7
    new-instance v2, Les/d70$b;

    invoke-direct {v2}, Les/d70$b;-><init>()V

    iput-object v2, p0, Les/d70;->G:Les/d70$b;

    const/4 v2, 0x1

    .line 8
    iput-boolean v2, p0, Les/d70;->J:Z

    .line 9
    iput-boolean v1, p0, Les/d70;->K:Z

    .line 10
    iput-object v0, p0, Les/d70;->M:Ljava/lang/String;

    .line 11
    iput-boolean v2, p0, Les/d70;->O:Z

    .line 12
    iput-boolean v1, p0, Les/d70;->P:Z

    .line 13
    iput-object v0, p0, Les/d70;->Q:Ljava/lang/String;

    const-wide/16 v0, 0x0

    .line 14
    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    iput-object v0, p0, Les/d70;->R:Ljava/lang/Long;

    .line 15
    iput-object v0, p0, Les/d70;->S:Ljava/lang/Long;

    .line 16
    iput-object p1, p0, Les/d70;->D:Lcom/estrongs/fs/f;

    .line 17
    iput-object p2, p0, Les/d70;->H:Ljava/lang/String;

    .line 18
    iput-object p5, p0, Les/d70;->M:Ljava/lang/String;

    .line 19
    sget-object p1, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {p3, p1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_0

    .line 20
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object p2, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    .line 21
    :cond_0
    iput-object p3, p0, Les/d70;->I:Ljava/lang/String;

    .line 22
    new-instance p1, Ljava/io/File;

    invoke-direct {p1, p3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 23
    invoke-virtual {p1}, Ljava/io/File;->exists()Z

    move-result p2

    if-nez p2, :cond_1

    .line 24
    invoke-virtual {p1}, Ljava/io/File;->mkdirs()Z

    .line 25
    :cond_1
    invoke-direct {p0}, Les/d70;->F()V

    if-eqz p4, :cond_2

    .line 26
    invoke-static {}, Les/t80;->b()Les/t80;

    move-result-object p1

    invoke-virtual {p1, p0}, Les/t80;->a(Les/s80;)V

    :cond_2
    return-void
.end method

.method public constructor <init>(Lcom/estrongs/fs/f;Lorg/json/JSONObject;)V
    .locals 7

    .line 27
    invoke-direct {p0, p2}, Les/s80;-><init>(Lorg/json/JSONObject;)V

    const/4 v0, 0x0

    .line 28
    iput-object v0, p0, Les/d70;->D:Lcom/estrongs/fs/f;

    .line 29
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Les/d70;->E:Ljava/util/List;

    const/4 v1, 0x0

    .line 30
    iput-boolean v1, p0, Les/d70;->F:Z

    .line 31
    new-instance v2, Les/d70$b;

    invoke-direct {v2}, Les/d70$b;-><init>()V

    iput-object v2, p0, Les/d70;->G:Les/d70$b;

    const/4 v2, 0x1

    .line 32
    iput-boolean v2, p0, Les/d70;->J:Z

    .line 33
    iput-boolean v1, p0, Les/d70;->K:Z

    .line 34
    iput-object v0, p0, Les/d70;->M:Ljava/lang/String;

    .line 35
    iput-boolean v2, p0, Les/d70;->O:Z

    .line 36
    iput-boolean v1, p0, Les/d70;->P:Z

    .line 37
    iput-object v0, p0, Les/d70;->Q:Ljava/lang/String;

    const-wide/16 v0, 0x0

    .line 38
    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    iput-object v2, p0, Les/d70;->R:Ljava/lang/Long;

    .line 39
    iput-object v2, p0, Les/d70;->S:Ljava/lang/Long;

    .line 40
    iput-object p1, p0, Les/d70;->D:Lcom/estrongs/fs/f;

    const-string p1, "source"

    .line 41
    invoke-virtual {p2, p1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Les/d70;->H:Ljava/lang/String;

    const-string p1, "target"

    .line 42
    invoke-virtual {p2, p1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Les/d70;->N:Ljava/lang/String;

    .line 43
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Les/d70;->I:Ljava/lang/String;

    .line 44
    sget-object v2, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {p1, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_0

    .line 45
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Les/d70;->I:Ljava/lang/String;

    invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v2, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Les/d70;->I:Ljava/lang/String;

    :cond_0
    const-string p1, "mime_type"

    .line 46
    invoke-virtual {p2, p1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Les/d70;->M:Ljava/lang/String;

    .line 47
    iget-object p1, p0, Les/d70;->N:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy;->a(Ljava/lang/String;)Ljava/io/File;

    move-result-object p1

    .line 48
    invoke-virtual {p1}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_1

    .line 49
    iget-object v2, p0, Les/s80;->c:Les/w80$a;

    iget-object v3, p0, Les/d70;->N:Ljava/lang/String;

    invoke-static {p1, v3}, Lcom/estrongs/android/pop/multicopy/MultiThreadCopy;->a(Ljava/io/File;Ljava/lang/String;)J

    move-result-wide v3

    iput-wide v3, v2, Les/w80$a;->f:J

    goto :goto_0

    .line 50
    :cond_1
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    new-instance v2, Ljava/io/File;

    iget-object v3, p0, Les/d70;->N:Ljava/lang/String;

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/io/File;->length()J

    move-result-wide v2

    iput-wide v2, p1, Les/w80$a;->f:J

    .line 51
    :goto_0
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    const-string v2, "size"

    invoke-virtual {p2, v2}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;)J

    move-result-wide v2

    iput-wide v2, p1, Les/w80$a;->e:J

    .line 52
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    iget-wide v2, p1, Les/w80$a;->f:J

    const/4 v4, 0x5

    const/4 v5, 0x4

    cmp-long v6, v2, v0

    if-lez v6, :cond_3

    .line 53
    iget-wide v0, p1, Les/w80$a;->e:J

    cmp-long p2, v2, v0

    if-gez p2, :cond_2

    const/4 p2, 0x2

    .line 54
    iput p2, p1, Les/w80$a;->i:I

    .line 55
    invoke-virtual {p0, v4}, Les/s80;->a(I)V

    goto :goto_1

    :cond_2
    cmp-long p1, v2, v0

    if-nez p1, :cond_5

    .line 56
    invoke-virtual {p0, v5}, Les/s80;->a(I)V

    goto :goto_1

    :cond_3
    const-string p1, "status"

    .line 57
    invoke-virtual {p2, p1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result p1

    if-ne p1, v5, :cond_4

    .line 58
    invoke-virtual {p0, v5}, Les/s80;->a(I)V

    goto :goto_1

    .line 59
    :cond_4
    invoke-virtual {p0, v4}, Les/s80;->a(I)V

    :cond_5
    :goto_1
    return-void
.end method

.method private F()V
    .locals 5

    .line 1
    iget-wide v0, p0, Les/s80;->p:J

    const-wide/16 v2, -0x1

    cmp-long v4, v0, v2

    if-nez v4, :cond_0

    .line 2
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Les/s80;->p:J

    .line 3
    :cond_0
    invoke-virtual {p0}, Les/s80;->k()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    const-string v1, "task_id"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 4
    iget-wide v0, p0, Les/s80;->p:J

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    const-string v1, "start_time"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    const/4 v0, 0x6

    .line 5
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    const-string v1, "task_type"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    const/4 v0, 0x1

    .line 6
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    const-string v2, "restartable"

    invoke-virtual {p0, v2, v1}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 7
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "items_ori_count"

    invoke-virtual {p0, v2, v1}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 8
    iget-object v1, p0, Les/d70;->H:Ljava/lang/String;

    const-string v2, "source"

    invoke-virtual {p0, v2, v1}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 9
    iget-object v1, p0, Les/d70;->H:Ljava/lang/String;

    invoke-static {v1}, Lcom/estrongs/android/util/n0;->b(Ljava/lang/String;)I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "file_type"

    invoke-virtual {p0, v2, v1}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 10
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    const-string v1, "status"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 11
    iget-object v0, p0, Les/d70;->M:Ljava/lang/String;

    const-string v1, "mime_type"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 4

    .line 2
    invoke-static {p1}, Lcom/estrongs/android/util/o0;->b(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string v0, ";"

    .line 3
    invoke-virtual {p1, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p1

    .line 4
    array-length v0, p1

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v0, :cond_1

    aget-object v2, p1, v1

    .line 5
    invoke-static {v2}, Lcom/estrongs/android/util/o0;->b(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_0

    iget-object v3, p0, Les/d70;->H:Ljava/lang/String;

    invoke-virtual {v3, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_0

    move-object p2, v2

    goto :goto_1

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    :goto_1
    return-object p2
.end method

.method static synthetic a(Les/d70;)Z
    .locals 0

    .line 1
    invoke-virtual {p0}, Les/s80;->o()Z

    move-result p0

    return p0
.end method


# virtual methods
.method public C()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Les/d70;->L:Ljava/lang/String;

    return-object v0
.end method

.method public D()Ljava/lang/String;
    .locals 2

    .line 1
    invoke-virtual {p0}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object v0

    const-string v1, "target"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected E()Z
    .locals 17

    move-object/from16 v1, p0

    .line 1
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    iget v2, v0, Les/w80$a;->i:I

    const/4 v3, -0x1

    if-ne v2, v3, :cond_0

    const/4 v2, 0x4

    .line 2
    iput v2, v0, Les/w80$a;->i:I

    .line 3
    :cond_0
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    invoke-virtual {v1, v0}, Les/s80;->a(Les/w80$a;)V

    .line 4
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    invoke-virtual/range {p0 .. p0}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object v2

    const-string v4, "size"

    invoke-virtual {v2, v4}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;)J

    move-result-wide v5

    iput-wide v5, v0, Les/w80$a;->e:J

    .line 5
    iget-object v0, v1, Les/d70;->H:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    const-string v2, "http"

    invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    const/4 v2, 0x1

    const/4 v5, 0x0

    if-nez v0, :cond_2

    iget-object v0, v1, Les/d70;->H:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    const-string v6, "https"

    invoke-virtual {v0, v6}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    goto :goto_0

    .line 6
    :cond_1
    iget-object v0, v1, Les/d70;->D:Lcom/estrongs/fs/f;

    iget-object v6, v1, Les/d70;->H:Ljava/lang/String;

    invoke-virtual {v0, v6}, Lcom/estrongs/fs/f;->g(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object v0

    goto/16 :goto_4

    .line 7
    :cond_2
    :goto_0
    new-instance v6, Lcom/estrongs/android/util/TypedMap;

    invoke-direct {v6}, Lcom/estrongs/android/util/TypedMap;-><init>()V

    const/4 v7, 0x0

    move-object v0, v7

    move-object v10, v0

    const/4 v8, 0x0

    const/4 v9, 0x0

    :goto_1
    if-nez v0, :cond_8

    .line 8
    invoke-virtual/range {p0 .. p0}, Les/s80;->z()Z

    move-result v0

    if-nez v0, :cond_7

    const/16 v0, 0x14

    if-le v8, v0, :cond_3

    goto/16 :goto_3

    :cond_3
    if-eqz v9, :cond_5

    .line 9
    :try_start_0
    const-class v0, Les/v80$b;

    const/4 v11, 0x2

    new-array v11, v11, [Ljava/lang/Object;

    iget-object v12, v1, Les/d70;->H:Ljava/lang/String;

    aput-object v12, v11, v5

    invoke-virtual/range {p0 .. p0}, Les/s80;->k()J

    move-result-wide v12

    invoke-static {v12, v13}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v12

    aput-object v12, v11, v2

    invoke-virtual {v1, v0, v11}, Les/d70;->a(Ljava/lang/Class;[Ljava/lang/Object;)Les/v80$c;

    move-result-object v0

    move-object v11, v0

    check-cast v11, Les/v80$b;
    :try_end_0
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_1

    .line 10
    :try_start_1
    iget-boolean v0, v11, Les/v80$b;->h:Z

    if-eqz v0, :cond_4

    .line 11
    iput-boolean v5, v11, Les/v80$b;->h:Z

    .line 12
    invoke-virtual/range {p0 .. p0}, Les/s80;->s()V

    return v5

    :cond_4
    const-string v0, "NEW_USERNAME"

    .line 13
    iget-object v10, v11, Les/v80$b;->f:Ljava/lang/String;

    invoke-virtual {v6, v0, v10}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    const-string v0, "NEW_PASSWORD"

    .line 14
    iget-object v10, v11, Les/v80$b;->g:Ljava/lang/String;

    invoke-virtual {v6, v0, v10}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    .line 15
    new-instance v0, Les/e30;

    invoke-direct {v0}, Les/e30;-><init>()V

    iget-object v10, v1, Les/d70;->H:Ljava/lang/String;

    invoke-virtual {v0, v10, v6}, Les/e30;->b(Ljava/lang/String;Lcom/estrongs/android/util/TypedMap;)Lcom/estrongs/fs/g;

    move-result-object v0
    :try_end_1
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_1 .. :try_end_1} :catch_0

    move-object v10, v11

    goto :goto_1

    :catch_0
    move-exception v0

    move-object v10, v11

    goto :goto_2

    .line 16
    :cond_5
    :try_start_2
    new-instance v0, Les/e30;

    invoke-direct {v0}, Les/e30;-><init>()V

    iget-object v11, v1, Les/d70;->H:Ljava/lang/String;

    invoke-virtual {v0, v11}, Les/e30;->a(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object v0
    :try_end_2
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_1

    :catch_1
    move-exception v0

    .line 17
    :goto_2
    invoke-virtual {v0}, Lcom/estrongs/android/exception/AbstractException;->getMessage()Ljava/lang/String;

    move-result-object v9

    if-eqz v9, :cond_7

    invoke-virtual {v0}, Lcom/estrongs/android/exception/AbstractException;->getMessage()Ljava/lang/String;

    move-result-object v0

    const-string v9, "unauthorized"

    invoke-virtual {v0, v9}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_7

    add-int/lit8 v8, v8, 0x1

    if-eqz v10, :cond_6

    .line 18
    iput-boolean v5, v10, Les/v80$c;->a:Z

    :cond_6
    move-object v0, v7

    const/4 v9, 0x1

    goto :goto_1

    :cond_7
    :goto_3
    return v5

    :cond_8
    :goto_4
    if-nez v0, :cond_9

    return v5

    .line 19
    :cond_9
    iget-object v5, v1, Les/s80;->c:Les/w80$a;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Les/w80$a;->j:Ljava/lang/String;

    .line 20
    iget-object v5, v1, Les/s80;->c:Les/w80$a;

    const-wide/16 v6, 0x1

    iput-wide v6, v5, Les/w80$a;->c:J

    .line 21
    invoke-interface {v0}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v6

    iput-wide v6, v5, Les/w80$a;->e:J

    .line 22
    invoke-virtual/range {p0 .. p0}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object v5

    const-string v6, "title"

    invoke-virtual {v5, v6}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 23
    invoke-static {v5}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/CharSequence;)Z

    move-result v7

    if-eqz v7, :cond_b

    iget-object v7, v1, Les/d70;->H:Ljava/lang/String;

    const-string v8, "http://"

    invoke-virtual {v7, v8}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v7

    if-nez v7, :cond_a

    iget-object v7, v1, Les/d70;->H:Ljava/lang/String;

    const-string v8, "https://"

    invoke-virtual {v7, v8}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_b

    .line 24
    :cond_a
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v5

    :cond_b
    if-nez v5, :cond_c

    .line 25
    iget-object v5, v1, Les/d70;->H:Ljava/lang/String;

    invoke-static {v5}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    :cond_c
    const/16 v7, 0x3a

    const/16 v8, 0x5f

    .line 26
    invoke-virtual {v5, v7, v8}, Ljava/lang/String;->replace(CC)Ljava/lang/String;

    move-result-object v5

    .line 27
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Lcom/estrongs/android/util/h0;->x(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 28
    invoke-static {v5}, Lcom/estrongs/android/util/n0;->b(Ljava/lang/String;)I

    move-result v8

    if-ne v8, v3, :cond_e

    iget-object v3, v1, Les/d70;->M:Ljava/lang/String;

    if-eqz v3, :cond_e

    .line 29
    invoke-static {}, Landroid/webkit/MimeTypeMap;->getSingleton()Landroid/webkit/MimeTypeMap;

    move-result-object v3

    iget-object v7, v1, Les/d70;->M:Ljava/lang/String;

    invoke-virtual {v3, v7}, Landroid/webkit/MimeTypeMap;->getExtensionFromMimeType(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 30
    invoke-static {v7}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_e

    .line 31
    iget-object v3, v1, Les/d70;->M:Ljava/lang/String;

    const-string v8, "image"

    invoke-virtual {v3, v8}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_d

    .line 32
    invoke-static {}, Lcom/estrongs/android/util/n0;->j()Ljava/lang/String;

    move-result-object v3

    const-string v7, ".jpg"

    invoke-direct {v1, v3, v7}, Les/d70;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    move-object v7, v3

    .line 33
    :cond_d
    iget-object v3, v1, Les/d70;->M:Ljava/lang/String;

    const-string v8, "video"

    invoke-virtual {v3, v8}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_e

    .line 34
    invoke-static {}, Lcom/estrongs/android/util/n0;->j()Ljava/lang/String;

    move-result-object v3

    const-string v7, ".mp4"

    invoke-direct {v1, v3, v7}, Les/d70;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 35
    :cond_e
    invoke-static {v7}, Lcom/estrongs/android/util/o0;->b(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_10

    const-string v3, "."

    .line 36
    invoke-virtual {v7, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v8

    if-nez v8, :cond_f

    .line 37
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 38
    :cond_f
    invoke-virtual {v5, v7}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_10

    .line 39
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 40
    :cond_10
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v7, v1, Les/d70;->I:Ljava/lang/String;

    invoke-virtual {v3, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v1, Les/d70;->L:Ljava/lang/String;

    .line 41
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v7, v1, Les/d70;->I:Ljava/lang/String;

    invoke-virtual {v3, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual/range {p0 .. p0}, Les/s80;->k()J

    move-result-wide v7

    invoke-virtual {v3, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v7, "_"

    invoke-virtual {v3, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v1, Les/d70;->N:Ljava/lang/String;

    .line 42
    iget-object v3, v1, Les/d70;->E:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->clear()V

    .line 43
    iget-object v3, v1, Les/d70;->E:Ljava/util/List;

    new-instance v7, Les/q60;

    iget-object v13, v1, Les/d70;->N:Ljava/lang/String;

    iget-object v8, v1, Les/s80;->c:Les/w80$a;

    iget-wide v14, v8, Les/w80$a;->f:J

    const/16 v16, 0x0

    move-object v11, v7

    move-object v12, v0

    invoke-direct/range {v11 .. v16}, Les/q60;-><init>(Lcom/estrongs/fs/g;Ljava/lang/String;JZ)V

    invoke-interface {v3, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 44
    iget-object v3, v1, Les/d70;->L:Ljava/lang/String;

    iget-object v7, v1, Les/d70;->H:Ljava/lang/String;

    invoke-virtual {v3, v7}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    iput-boolean v3, v1, Les/d70;->K:Z

    .line 45
    iput-boolean v2, v1, Les/s80;->w:Z

    const/4 v3, 0x6

    .line 46
    iput v3, v1, Les/s80;->s:I

    .line 47
    invoke-virtual {v1, v6, v5}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 48
    iget-object v3, v1, Les/d70;->N:Ljava/lang/String;

    const-string v6, "target"

    invoke-virtual {v1, v6, v3}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 49
    invoke-static {v5}, Lcom/estrongs/android/util/n0;->b(Ljava/lang/String;)I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v5, "file_type"

    invoke-virtual {v1, v5, v3}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 50
    iget-object v3, v1, Les/s80;->c:Les/w80$a;

    iget-wide v5, v3, Les/w80$a;->c:J

    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    const-string v5, "items_selected_count"

    invoke-virtual {v1, v5, v3}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 51
    invoke-interface {v0}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v5

    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    invoke-virtual {v1, v4, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 52
    invoke-static {}, Les/t80;->b()Les/t80;

    move-result-object v0

    invoke-virtual {v0, v1}, Les/t80;->c(Les/s80;)V

    return v2
.end method

.method public varargs a(Ljava/lang/Class;[Ljava/lang/Object;)Les/v80$c;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Les/v80$c;",
            ">(",
            "Ljava/lang/Class<",
            "TT;>;[",
            "Ljava/lang/Object;",
            ")TT;"
        }
    .end annotation

    .line 22
    const-class v0, Les/v80$b;

    if-ne v0, p1, :cond_0

    .line 23
    invoke-super {p0, p1, p2}, Les/s80;->a(Ljava/lang/Class;[Ljava/lang/Object;)Les/v80$c;

    move-result-object p1

    return-object p1

    :cond_0
    if-eqz p2, :cond_1

    .line 24
    array-length v0, p2

    const/4 v1, 0x2

    if-ne v0, v1, :cond_1

    const/4 v0, 0x1

    aget-object p2, p2, v0

    invoke-static {p2}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_1

    const/4 p1, 0x0

    return-object p1

    .line 25
    :cond_1
    invoke-super {p0, p1}, Les/s80;->a(Ljava/lang/Class;)Les/v80$c;

    move-result-object p1

    return-object p1
.end method

.method public varargs a(I[Ljava/lang/Object;)V
    .locals 6

    const/4 v0, 0x0

    const/4 v1, 0x1

    if-eq p1, v1, :cond_8

    const/4 v2, 0x2

    if-eq p1, v2, :cond_5

    const/4 v2, 0x4

    if-eq p1, v2, :cond_3

    const/16 v2, 0xe

    if-eq p1, v2, :cond_2

    const/16 v2, 0x8

    if-eq p1, v2, :cond_1

    const/16 v2, 0x9

    if-eq p1, v2, :cond_0

    goto :goto_0

    .line 6
    :cond_0
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object v0, p2, v0

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    iput-wide v2, p1, Les/w80$a;->g:J

    .line 7
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object p2, p2, v1

    check-cast p2, Ljava/lang/Long;

    invoke-virtual {p2}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iput-wide v0, p1, Les/w80$a;->h:J

    goto/16 :goto_3

    .line 8
    :cond_1
    iget-object v0, p0, Les/d70;->G:Les/d70$b;

    iput-boolean v1, v0, Les/d70$b;->a:Z

    .line 9
    :goto_0
    invoke-super {p0, p1, p2}, Les/s80;->a(I[Ljava/lang/Object;)V

    goto/16 :goto_3

    .line 10
    :cond_2
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object v0, p2, v0

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    iput-wide v2, p1, Les/w80$a;->g:J

    .line 11
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    iget-wide v2, p1, Les/w80$a;->h:J

    aget-object p2, p2, v1

    check-cast p2, Ljava/lang/Long;

    invoke-virtual {p2}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    add-long/2addr v2, v0

    iput-wide v2, p1, Les/w80$a;->h:J

    goto/16 :goto_3

    .line 12
    :cond_3
    aget-object p1, p2, v0

    check-cast p1, Ljava/util/List;

    if-nez p1, :cond_4

    return-void

    .line 13
    :cond_4
    :goto_1
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p2

    if-ge v0, p2, :cond_9

    .line 14
    iget-object p2, p0, Les/d70;->E:Ljava/util/List;

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    invoke-interface {p2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    .line 15
    :cond_5
    array-length p1, p2

    const/4 v3, 0x3

    if-ne p1, v3, :cond_7

    aget-object p1, p2, v2

    const-string v3, "RBT"

    invoke-virtual {v3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_6

    aget-object p1, p2, v2

    const-string v2, "reset"

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_7

    .line 16
    :cond_6
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object v0, p2, v0

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    iput-wide v2, p1, Les/w80$a;->f:J

    .line 17
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    iget-wide v2, p1, Les/w80$a;->f:J

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    iput-object p1, p0, Les/d70;->S:Ljava/lang/Long;

    goto :goto_2

    .line 18
    :cond_7
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    iget-wide v2, p1, Les/w80$a;->f:J

    aget-object v0, p2, v0

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    add-long/2addr v2, v4

    iput-wide v2, p1, Les/w80$a;->f:J

    .line 19
    :goto_2
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object p2, p2, v1

    check-cast p2, Ljava/lang/String;

    iput-object p2, p1, Les/w80$a;->a:Ljava/lang/String;

    goto :goto_3

    .line 20
    :cond_8
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    iget-wide v2, p1, Les/w80$a;->d:J

    aget-object v0, p2, v0

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    add-long/2addr v2, v4

    iput-wide v2, p1, Les/w80$a;->d:J

    .line 21
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object p2, p2, v1

    check-cast p2, Ljava/lang/String;

    iput-object p2, p1, Les/w80$a;->a:Ljava/lang/String;

    :cond_9
    :goto_3
    return-void
.end method

.method protected e()V
    .locals 2

    .line 1
    invoke-super {p0}, Les/s80;->e()V

    .line 2
    invoke-virtual {p0}, Les/s80;->m()I

    move-result v0

    const/4 v1, 0x5

    if-ne v0, v1, :cond_0

    .line 3
    invoke-static {}, Les/t80;->b()Les/t80;

    move-result-object v0

    iget-object v0, v0, Les/t80;->e:Les/z80;

    invoke-virtual {p0, v0}, Les/s80;->a(Les/z80;)V

    :cond_0
    return-void
.end method

.method protected r()V
    .locals 1

    .line 1
    iget-object v0, p0, Les/d70;->Q:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/o0;->b(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Les/d70;->Q:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/fs/impl/local/f;->a(Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public u()V
    .locals 3

    .line 1
    iget-object v0, p0, Les/s80;->c:Les/w80$a;

    iget-wide v0, v0, Les/w80$a;->f:J

    .line 2
    invoke-super {p0}, Les/s80;->u()V

    .line 3
    iget-boolean v2, p0, Les/d70;->J:Z

    if-eqz v2, :cond_0

    .line 4
    iget-object v2, p0, Les/s80;->c:Les/w80$a;

    iput-wide v0, v2, Les/w80$a;->f:J

    :cond_0
    const/4 v0, 0x0

    .line 5
    iput-boolean v0, p0, Les/d70;->F:Z

    .line 6
    iput-boolean v0, p0, Les/d70;->K:Z

    return-void
.end method

.method public y()Z
    .locals 11

    const-string v0, "size"

    const-string v1, "http://dwz.cn"

    const/16 v2, 0x2710

    const/4 v3, 0x1

    const/4 v4, 0x0

    .line 1
    :try_start_0
    iget-object v5, p0, Les/d70;->H:Ljava/lang/String;

    const-string v6, "http://t.cn/"

    .line 2
    invoke-virtual {v5, v6}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_0

    .line 3
    new-instance v6, Lorg/apache/http/client/methods/HttpGet;

    invoke-direct {v6, v5}, Lorg/apache/http/client/methods/HttpGet;-><init>(Ljava/lang/String;)V

    .line 4
    invoke-static {v4}, Lcom/estrongs/fs/impl/pcs/PcsFileSystem;->a(Z)Lorg/apache/http/client/HttpClient;

    move-result-object v7
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 5
    :try_start_1
    invoke-interface {v7, v6}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v6

    .line 6
    invoke-interface {v6}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v7

    invoke-interface {v7}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v7

    const/16 v8, 0x12c

    if-le v7, v8, :cond_0

    const/16 v8, 0x190

    if-ge v7, v8, :cond_0

    const-string v7, "Location"

    .line 7
    invoke-interface {v6, v7}, Lorg/apache/http/HttpResponse;->getHeaders(Ljava/lang/String;)[Lorg/apache/http/Header;

    move-result-object v6

    if-eqz v6, :cond_0

    .line 8
    array-length v7, v6

    if-lez v7, :cond_0

    .line 9
    aget-object v6, v6, v4

    invoke-interface {v6}, Lorg/apache/http/Header;->getValue()Ljava/lang/String;

    move-result-object v5
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 10
    :catch_0
    :cond_0
    :try_start_2
    invoke-virtual {v5, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 11
    invoke-static {v5}, Lcom/estrongs/fs/impl/pcs/PcsFileSystem;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    if-eqz v6, :cond_1

    move-object v5, v6

    :cond_1
    const-string v6, "http://www.estrongs.com/esshare?s="

    .line 12
    invoke-virtual {v5, v6}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_2

    const/16 v6, 0x22

    .line 13
    invoke-virtual {v5, v6}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v5

    const/16 v6, 0x5f

    const/16 v7, 0x20

    .line 14
    invoke-virtual {v5, v6, v7}, Ljava/lang/String;->replace(CC)Ljava/lang/String;

    move-result-object v5

    const/16 v6, 0x2d

    const/16 v7, 0x2f

    invoke-virtual {v5, v6, v7}, Ljava/lang/String;->replace(CC)Ljava/lang/String;

    move-result-object v5

    .line 15
    invoke-static {v5, v4}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object v5

    .line 16
    :cond_2
    invoke-virtual {v5, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 17
    invoke-static {v5}, Lcom/estrongs/fs/impl/pcs/PcsFileSystem;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_3

    move-object v5, v1

    .line 18
    :cond_3
    iput-object v5, p0, Les/d70;->H:Ljava/lang/String;

    .line 19
    iget-object v1, p0, Les/d70;->G:Les/d70$b;

    iput-boolean v4, v1, Les/d70$b;->a:Z

    .line 20
    iget-boolean v1, p0, Les/d70;->K:Z

    const/4 v5, 0x0

    if-eqz v1, :cond_4

    const/16 v0, 0xd

    .line 21
    new-instance v1, Les/u80$a;

    const-string v6, "Error"

    invoke-direct {v1, v6, v5}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    invoke-virtual {p0, v0, v1}, Les/s80;->b(ILjava/lang/Object;)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 22
    iput-boolean v3, p0, Les/d70;->F:Z

    return v4

    .line 23
    :cond_4
    :try_start_3
    invoke-virtual {p0}, Les/d70;->E()Z

    move-result v1

    if-nez v1, :cond_5

    .line 24
    new-instance v0, Les/u80$a;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "Failed to get FileObject for "

    invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v6, p0, Les/d70;->H:Ljava/lang/String;

    invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1, v5}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    invoke-virtual {p0, v2, v0}, Les/s80;->b(ILjava/lang/Object;)V

    .line 25
    iget-object v0, p0, Les/s80;->c:Les/w80$a;

    const/4 v1, -0x1

    iput v1, v0, Les/w80$a;->i:I
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 26
    iput-boolean v3, p0, Les/d70;->F:Z

    return v4

    .line 27
    :cond_5
    :try_start_4
    iget-boolean v1, p0, Les/d70;->P:Z
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    const-string v5, "target"

    if-eqz v1, :cond_6

    .line 28
    :try_start_5
    new-instance v1, Ljava/io/File;

    iget-object v6, p0, Les/d70;->L:Ljava/lang/String;

    invoke-direct {v1, v6}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 29
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v6

    if-eqz v6, :cond_6

    .line 30
    invoke-virtual {v1}, Ljava/io/File;->getAbsoluteFile()Ljava/io/File;

    move-result-object v0

    invoke-virtual {p0, v5, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 31
    iget-object v0, p0, Les/d70;->G:Les/d70$b;

    invoke-virtual {p0, v4, v0}, Les/s80;->b(ILjava/lang/Object;)V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_1
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    .line 32
    iput-boolean v3, p0, Les/d70;->F:Z

    return v3

    .line 33
    :cond_6
    :try_start_6
    new-instance v1, Les/d70$a;

    invoke-direct {v1, p0}, Les/d70$a;-><init>(Les/d70;)V

    .line 34
    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    .line 35
    iget-object v1, p0, Les/d70;->E:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_7

    .line 36
    iget-object v1, p0, Les/s80;->c:Les/w80$a;

    iget-object v6, p0, Les/d70;->E:Ljava/util/List;

    invoke-interface {v6, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Les/q60;

    iget-object v6, v6, Les/q60;->a:Lcom/estrongs/fs/g;

    invoke-interface {v6}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v6

    iput-object v6, v1, Les/w80$a;->a:Ljava/lang/String;

    .line 37
    iget-object v1, p0, Les/s80;->c:Les/w80$a;

    invoke-virtual {p0, v1}, Les/s80;->a(Les/w80$a;)V

    .line 38
    :cond_7
    iget-object v1, p0, Les/s80;->c:Les/w80$a;

    const/4 v6, 0x2

    iput v6, v1, Les/w80$a;->i:I

    .line 39
    iget-object v1, p0, Les/s80;->c:Les/w80$a;

    invoke-virtual {p0, v1}, Les/s80;->a(Les/w80$a;)V

    .line 40
    invoke-virtual {p0}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object v1

    const-string v6, "need_reload"

    invoke-virtual {v1, v6}, Lorg/json/JSONObject;->remove(Ljava/lang/String;)Ljava/lang/Object;

    .line 41
    :cond_8
    :goto_0
    iget-object v1, p0, Les/d70;->E:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    const-wide/16 v6, 0x0

    if-lez v1, :cond_c

    .line 42
    invoke-virtual {p0}, Les/s80;->z()Z

    move-result v1
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_1
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    if-eqz v1, :cond_9

    .line 43
    iput-boolean v3, p0, Les/d70;->F:Z

    return v4

    .line 44
    :cond_9
    :try_start_7
    iget-object v1, p0, Les/d70;->E:Ljava/util/List;

    invoke-interface {v1, v4}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/q60;

    .line 45
    iget-object v8, p0, Les/d70;->D:Lcom/estrongs/fs/f;

    invoke-virtual {v8, p0, v1}, Lcom/estrongs/fs/f;->a(Les/s80;Les/q60;)Z

    move-result v1

    if-nez v1, :cond_a

    .line 46
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v0

    iget-object v1, p0, Les/d70;->N:Ljava/lang/String;

    invoke-virtual {v0, v1}, Les/p10;->a(Ljava/lang/String;)V
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_1
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    .line 47
    iput-boolean v3, p0, Les/d70;->F:Z

    return v4

    .line 48
    :cond_a
    :try_start_8
    iget-object v1, p0, Les/d70;->N:Ljava/lang/String;

    iget-object v8, p0, Les/d70;->L:Ljava/lang/String;

    invoke-static {v1, v8}, Lcom/estrongs/fs/util/f;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;

    move-result-object v1
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_1
    .catchall {:try_start_8 .. :try_end_8} :catchall_0

    const-string v8, "title"

    if-eqz v1, :cond_b

    .line 49
    :try_start_9
    invoke-virtual {v1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p0, v8, v9}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 50
    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v8

    .line 51
    invoke-virtual {p0, v5, v8}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 52
    iput-object v8, p0, Les/d70;->Q:Ljava/lang/String;

    .line 53
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v9

    invoke-virtual {v9, v8}, Les/p10;->a(Ljava/lang/String;)V

    goto :goto_1

    .line 54
    :cond_b
    iget-object v9, p0, Les/d70;->N:Ljava/lang/String;

    invoke-static {v9}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p0, v8, v9}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 55
    iget-object v8, p0, Les/d70;->N:Ljava/lang/String;

    invoke-virtual {p0, v5, v8}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 56
    iget-object v8, p0, Les/d70;->N:Ljava/lang/String;

    iput-object v8, p0, Les/d70;->Q:Ljava/lang/String;

    .line 57
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v8

    iget-object v9, p0, Les/d70;->N:Ljava/lang/String;

    invoke-virtual {v8, v9}, Les/p10;->a(Ljava/lang/String;)V

    .line 58
    :goto_1
    invoke-virtual {p0}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object v8

    invoke-virtual {v8, v0}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;)J

    move-result-wide v8

    cmp-long v10, v8, v6

    if-gez v10, :cond_8

    .line 59
    invoke-virtual {v1}, Ljava/io/File;->length()J

    move-result-wide v6

    invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    goto/16 :goto_0

    .line 60
    :cond_c
    iget-object v0, p0, Les/s80;->c:Les/w80$a;

    iget-wide v0, v0, Les/w80$a;->c:J

    cmp-long v5, v0, v6

    if-lez v5, :cond_d

    .line 61
    iget-object v0, p0, Les/s80;->c:Les/w80$a;

    iget-object v1, p0, Les/s80;->c:Les/w80$a;

    iget-wide v8, v1, Les/w80$a;->c:J

    iput-wide v8, v0, Les/w80$a;->d:J

    .line 62
    :cond_d
    iget-object v0, p0, Les/s80;->c:Les/w80$a;

    iget-wide v0, v0, Les/w80$a;->e:J

    cmp-long v5, v0, v6

    if-lez v5, :cond_e

    .line 63
    iget-object v0, p0, Les/s80;->c:Les/w80$a;

    iget-object v1, p0, Les/s80;->c:Les/w80$a;

    iget-wide v5, v1, Les/w80$a;->e:J

    iput-wide v5, v0, Les/w80$a;->f:J

    .line 64
    :cond_e
    iget-object v0, p0, Les/s80;->c:Les/w80$a;

    invoke-virtual {p0, v0}, Les/s80;->a(Les/w80$a;)V

    .line 65
    iget-object v0, p0, Les/d70;->G:Les/d70$b;

    invoke-virtual {p0, v4, v0}, Les/s80;->b(ILjava/lang/Object;)V
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_1
    .catchall {:try_start_9 .. :try_end_9} :catchall_0

    .line 66
    iput-boolean v3, p0, Les/d70;->F:Z

    return v3

    :catchall_0
    move-exception v0

    goto :goto_2

    :catch_1
    move-exception v0

    .line 67
    :try_start_a
    new-instance v1, Les/u80$a;

    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-direct {v1, v5, v0}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    invoke-virtual {p0, v2, v1}, Les/s80;->b(ILjava/lang/Object;)V
    :try_end_a
    .catchall {:try_start_a .. :try_end_a} :catchall_0

    .line 68
    iput-boolean v3, p0, Les/d70;->F:Z

    return v4

    :goto_2
    iput-boolean v3, p0, Les/d70;->F:Z

    .line 69
    goto :goto_4

    :goto_3
    throw v0

    :goto_4
    goto :goto_3
.end method
